.create-post-container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.editor-header .btn {
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.editor-content {
    padding: 2rem;
}

.post-title-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    outline: none;
    margin-bottom: 1rem;
}

.post-content-input {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: none;
    outline: none;
    resize: vertical;
    margin-bottom: 1rem;
}

.media-upload-section {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.media-upload-section:hover,
.media-upload-section.drag-over {
    border-color: #4CAF50;
    background-color: #f8fff8;
}

.upload-label {
    display: inline-block;
}

.upload-icon {
    display: block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 1rem;
    background-color: #f0f0f0;
    border-radius: 50%;
    font-size: 30px;
    color: #999;
    transition: all 0.3s;
}

.media-upload-section:hover .upload-icon {
    background-color: #e0f2e0;
    color: #4CAF50;
}

.upload-hint {
    color: #999;
    font-size: 0.9rem;
}

.media-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.media-preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.remove-media-btn:hover {
    background-color: rgba(244,67,54,0.8);
}

.post-settings {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.visibility-setting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-setting select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

@media (max-width: 768px) {
    .media-preview-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .editor-content {
        padding: 1rem;
    }
}